From 81e5c764a1b962c463efd2c1feb17d4090b296f1 Mon Sep 17 00:00:00 2001 From: Andy Russell Date: Wed, 16 Nov 2016 16:04:31 -0500 Subject: [PATCH] show warnings for all members of the workspace --- src/cargo/ops/cargo_compile.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/cargo/ops/cargo_compile.rs b/src/cargo/ops/cargo_compile.rs index e08631593..a0e70e9ba 100644 --- a/src/cargo/ops/cargo_compile.rs +++ b/src/cargo/ops/cargo_compile.rs @@ -98,8 +98,8 @@ pub enum CompileFilter<'a> { pub fn compile<'a>(ws: &Workspace<'a>, options: &CompileOptions<'a>) -> CargoResult> { - if let Some(root_package) = ws.current_opt() { - for key in root_package.manifest().warnings().iter() { + for member in ws.members() { + for key in member.manifest().warnings().iter() { options.config.shell().warn(key)? } } -- 2.30.2